﻿@model GPI.Models.GPI_PROJECT

@{
    ViewBag.Title = "Créer un projet";
}

<h2>Créer un projet</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>PROJET</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.title)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.title)
            @Html.ValidationMessageFor(model => model.title)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.description)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.description)
            @Html.ValidationMessageFor(model => model.description)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.max_students)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.max_students)
            @Html.ValidationMessageFor(model => model.max_students)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.YEAR)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.YEAR)
            @Html.ValidationMessageFor(model => model.YEAR)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FK_Client, "Client")
        </div>
        <div class="editor-field">
            @Html.DropDownList("FK_Client", String.Empty)
            @Html.ValidationMessageFor(model => model.FK_Client)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FK_Prof, "Prof.")
        </div>
        <div class="editor-field">
            @Html.DropDownList("FK_Prof", String.Empty)
            @Html.ValidationMessageFor(model => model.FK_Prof)
        </div>

        <p>
            <input type="submit" value="Créer" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Retour à la liste", "Index")
</div>
